export default {
  addCount ({ commit }, count) {
    commit('count', count)
  },
  // 侧边栏数据
  sideNav ({ commit }, nav) {
    commit('sideNav', nav)
  },
  // 用户权限及可访问路由数据
  addRole ({ commit }, roleInfo) {
    commit('addRole', roleInfo)
  },
  // 将目标路由添加到激活状态路由列表
  setActiveTabs ({ commit }, activeTabs) {
    commit('setActiveTabs', activeTabs)
  },
  // 将目标路由从激活状态路由列表中移除
  removeActiveTabs ({ commit }, tabIndex) {
    commit('removeActiveTabs', tabIndex)
  },
  // 以当前页面路由名为激活状态路由
  setActiveTab ({ commit }, activeTab) {
    commit('setActiveTab', activeTab)
  },
  // 重置激活状态路由列表
  resetActiveTabsList ({ commit }, activeTabsList) {
    commit('resetActiveTabsList', activeTabsList)
  },
  // 菜单树数据
  setMenuTree ({ commit }, menuTree) {
    commit('setMenuTree', menuTree)
  },
  // 项目分解树数据
  setDecomTree ({ commit }, decomTree) {
    commit('setDecomTree', decomTree)
  },
  // 用户信息
  setUserInfo ({ commit }, userInfo) {
    commit('setUserInfo', userInfo)
  },
  // 存储组织管理树数据
  setOrgainzationTree ({ commit }, orgainzationTree) {
    commit('setOrgainzationTree', orgainzationTree)
  },
  // 设置左侧菜单是否折叠
  setLeftNavCollapse ({ commit }, isCollapse) {
    commit('setLeftNavCollapse', isCollapse)
  },
  // 设置左侧菜单是否隐藏
  setLeftNavHidden ({ commit }, isHidden) {
    commit('setLeftNavHidden', isHidden)
  },
  // 存储当前页面的大小
  getPageSize ({ commit }, pageSize) {
    commit('getPageSize', pageSize)
  },
  // 存储用户权限
  setUserAuth ({ commit }, userAuth) {
    commit('setUserAuth', userAuth)
  },
  // 获取当前页面权限
  getPageAuth ({ commit }, auth) {
    commit('getPageAuth', auth)
  },
  // 获取主内容区滚动距离
  getScrollTop ({ commit }, scrollTop) {
    commit('getScrollTop', scrollTop)
  },
  // 建立组织
  setBuildOrg ({ commit }, buildOrg) {
    commit('setBuildOrg', buildOrg)
  },
  //加入组织
  setJoinOrg ({ commit }, joinOrg) {
    commit('setJoinOrg', joinOrg)
  },
  //切换组织或岗位 
  setOrgOrgStation ({ commit }, changeOrgOrStation) {
    commit('setOrgOrgStation', changeOrgOrStation)
  },
  //智慧工地接入情况的详情
  setZHGDConSiInfo ({ commit }, zhgdConSituatDetailObj) {
    commit('setZHGDConSiInfo', zhgdConSituatDetailObj)
  },
  // 存储已选中的项目信息
  setProject ({ commit }, project) {
    commit('setProject', project)
  },
  // 存储已选中的项目列表
  setProjectList ({ commit }, projectList) {
    commit('setProjectList', projectList)
  },
  // 设置项目id列表
  setProjectIdList ({ commit }, idList) {
    commit('setProjectIdList', idList)
  },
  // 设置切换单位的主键值
  setSwitchCompId ({ commit }, idList) {
    commit('setSwitchCompId', idList)
  },
  //平台入驻流程v1.7.0-单位列表页面的单位是否有新增
  setHasTheUnitIncreaStatus ({ commit }, idList) {
    commit('hasTheUnitIncreaStatus', idList);
  },
  // 存储权限树
  setPermissionTree ({ commit }, permissionTree) {
    commit('setPermissionTree', permissionTree)
  },
  // 编辑项目时存储项目信息
  setProjectInfo ({ commit }, projectInfo) {
    commit('setProjectInfo', projectInfo)
  },
  // 切换完善资料弹框是否可见
  toggleUserInfoDialogVisible ({ commit }, visible) {
    commit('toggleUserInfoDialogVisible', visible)
  },
  //存储添加层号的计数
  SetNodeCount ({ commit }, nodeCount) {
    commit('SetNodeCount', nodeCount)
  },
  //项目设计与分解-左边树-编辑设计信息-确定的次数
  setEditDesignInfoCount ({ commit }, editDesignInfoCount) {
    commit('setEditDesignInfoCount', editDesignInfoCount)
  },
  // 存储选中的经纬度
  setChoosedLat ({ commit }, latlnt) {
    commit('setChoosedLat', latlnt)
  },
  // 设置选择经纬度弹框是否可见
  setChooseLatVisible ({ commit }, visible) {
    commit('setChooseLatVisible', visible)
  },
  // 设置项目文档树
  setProjectFileTree ({ commit }, fileTree) {
    commit('setProjectFileTree', fileTree)
  },
  // 设置用户菜单
  setUserMenu ({ commit }, userMenu) {
    commit('setUserMenu', userMenu)
  },
  // 设置是否显示顶部菜单
  setShowTop ({ commit }, showTop) {
    commit('setShowTop', showTop)
  },
  // 设置是否显示左侧菜单
  setShowLeft ({ commit }, showLeft) {
    commit('setShowLeft', showLeft)
  }
}
